import Layout from '@/layout'

const clinicServiceRouter = {
  path: '/clinicService',
  component: Layout,
  redirect: '/clinicInfo',
  name: 'Clinic',
  meta: {
    title: '医生工作站',
    icon: 'component',
    noCache: true,
    roles: ['myClinic']
  },
  children: [
    /*{
      path: '/clinicInfo',
      component: () => import('@/views/clinic/index'),
      name: '接诊',
      meta: {icon: 'drag', title: '接诊', roles: ['clinic:treat:manager:list']}
    },*/
    {
      path: '/appointment',
      component: () => import('@/views/clinicService/appointment'),
      name: 'fastReception',
      meta: {icon: 'drag', title: '快速接诊', roles: ['clinic:info']}
    },
    {
      path: '/treatRecord',
      component: () => import('@/views/clinicService/treatRecord'),
      name: 'treatRecord',
      meta: {icon: 'drag', title: '接诊记录', roles: ['clinic:info']}
    },
    {
      path: "treatProject",
      name: "treatProject",
      component: () => import("@/views/clinicService/treat"),
      meta: {title: "诊疗项目", icon: "tree-table"},
      hidden: true,
    }
  ]
}

export default clinicServiceRouter
